<table class="statistike drop" cellspacing="0" cellpadding="0" border="1" width="600" style="border-collapse: collapse; empty-cells: show;">

  <tr>
    <th>Učenik</th>
    <th>Članarina do</th>
    <th>Test</th>
    <th>Socijala</th>
    <th>Kredit</th>
  </tr>

  <?php
  foreach($uceniks as $ucenik)
  {
     $roditelj = $ucenik->getRoditelj();
  ?>
  <tr>
    <td class="predmet"><?php echo $ucenik->joinIme() ?></td>
    <td><?php echo ($clanarina = $roditelj->getClanarina()) ? Functions::datumSr($clanarina) : '' ?></td>
    <td><?php echo $roditelj->getClanarinaTst() ?></td>
    <td><?php echo $roditelj->getClanarinaSoc() ?></td>
    <td><?php echo $roditelj->getKredit() ?></td>
  </tr>
<?php }?>
</table>